import Vue from 'vue';
import Router from 'vue-router';
import AppList from './apiList.vue'
import Preview from './doctpl.vue'

Vue.use(Router);

export default new Router({
    routes: [
        // { path: '*', component: AppList},
        { path: '/', redirect: "/_apilist"},
        { path: '*', component: Preview},
        { path: '/_preview', component: Preview},
        { path: '/_apilist', component:AppList },
        { path: '/_apilist/:id',
            component: AppList,
            children:[
                {
                    path:"",
                    component:AppList
                }
            ]}
    ]
});
